namespace Brilliance
{
    public class PresenterFactory : IPresenterFactory
    {
        private readonly IRegistry registry;

        public PresenterFactory(IRegistry registry)
        {
            this.registry = registry;
        }

        public T Create<T, E>(E view) where T : IPresenter, new() where E : IView
        {
            var presenter = new T {View = view};
            return presenter;
        }
    }
}